<template>
  <div>
    <el-button @click="show = true">打开</el-button>

    <el-dialog title="标题" :visible.sync="show">
      <span>默认插槽</span>

      <template slot="footer">
        <el-button>取消</el-button>
        <el-button>确认</el-button>
      </template>
    </el-dialog>

    <!--
      el-dialog
         :visible.sync="show" true 显示  fales隐藏
         默认插槽 内容
         具名插槽 footer 底部按钮位置

    -->
    {{ cl(1) }}

    {{ zh('hireType', 1) }}
  </div>
</template>

<script>
import cl from '@/api/员工封装抽离'
import { zh } from '@/api/constant/employees'
export default {

  data() {
    return {
      cl,
      zh,
      show: false,
      xxx: [
        {
          labo: 1,
          name: '男'
        },
        {
          labo: 0,
          name: '女'
        }
      ]
    }
  },
  methods: {
    rrr(a) {
      const res = this.xxx.find(v => v.labo === a)

      return res.name
    }
  }

}
</script>

<style scoped>

</style>
